<template>
    父组件------{{ message }}
    <hr>
    <SlotSubComponent>
        <p>{{ message }}</p>
    </SlotSubComponent>
</template>

<script setup>
import SlotSubComponent from './SlotSubComponent.vue';
const message = '我是父组件的数据'
</script>